
<%-------------------------------------------------------------------
 * 页面名称：clearAmountSubmit.jsp
 * 功能描述：企业结算账户认证页面
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%@ page
	import="cn.agiledata.bank.common.util.WeatherUtil,cn.agiledata.bank.account.dao.hibernate.HibernateAccountDAO,com.vnv.infrastructure.logic.IPBAppFactory,cn.agiledata.bank.hibernateBean.Account,cn.agiledata.bank.common.util.Constant"%>
<%
	String path = request.getContextPath();
	Long id = new Long(WeatherUtil.getAccountIdFromSession(request));

	HibernateAccountDAO hd = null;
	try {
		hd = (HibernateAccountDAO) IPBAppFactory.getObj("accountDAO");
	} catch (Exception e) {
		e.printStackTrace();
	}
	Account user = hd.getAccountById(id);
%>
<script type='text/javascript' src='<%=path%>/js/vnv/commonForManage.js'></script>
<script type='text/javascript' src='<%=path%>/js/ufront.js'></script>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/AccountLogic.js'></script>
<script type='text/javascript' src='<%=path%>/js/ufront.js'></script>
<script language="javascript" type="text/javascript"
	src="<%=path%>/js/choiceCity.js"></script>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/accountTemplate.js'></script>
<SCRIPT LANGUAGE="JavaScript">
function submitProcess() {
var formObj = document.IdcardAuthenticateForm;
	if (checkNecessaryInput(formObj)&&checkInputMaxlength(formObj)) {
	if (formObj.accountId.value.length>5 && formObj.accountId.value.length<33) {
				formObj.submit();
			} else {
				alert("有效号码的长度应该在6位到32位之间！");
			}
		
	}
}

function update() {
		AccountLogic.getCityList(createList, $("provSeq").value);
	}
	function createList(data) {
  		DWRUtil.removeAllOptions("citySeq");
  		DWRUtil.addOptions("citySeq", data,'cityId','cityName');
	}
	function id_keyup(txtinput) {
		txtinput.value=txtinput.value.replace(/(^\s*)|(\s*$)/g, "");
	}		
</SCRIPT>
<html:form action="clearAccount.do">
	<html:hidden property="authenticationStatus" />
	<div id="main">
		<div class="content_right">
			<div style="width:745px;margin-left:10px;">
				<div class="titleinfo">
					企业结算账户认证
				</div>
				<div class="edit_pass">
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="1">
						<tr>
							<td height="25" align="right">
								<span class="orang12b">* </span>开户名：
							</td>
							<td>
								<label>
									<input type="text" name="idcardName" alt="真实姓名" maxlength="80"
										size="30" class="inputStyle" />
								</label>
							</td>
						</tr>
						<tr>
							<td align="right" valign="top" height="25">
								<span class="orang12b">*</span> 银行卡号：
							</td>
							<td>
								<label>
									<input type="text" name="accountId" alt="银行卡号码" maxlength="32"
										size="30" styleClass="inputStyle" />
								</label>
								<br />
								<!-- 特别提醒 -->
								<table width="100%" border="0" align="center" cellpadding="7"
									cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
									<tr>
										<td bgcolor="#fffdf5">
											<table width="100%" border="0" cellpadding="3"
												cellspacing="0">
												<tr>
													<td width="3%" height="25" valign="top"
														style="border-bottom:1px solid #ccc;"></td>
													<td width="97%" align="left" class="red12b"
														style="border-bottom:1px solid #ccc;">
														特别提醒
													</td>
												</tr>
												<tr>
													<td valign="top">
														&nbsp;
													</td>
													<td align="left" class="font_gray">
														<span class="text9green"> 银行账号/银行卡号为数字，且长度应该在 <span
															class="redColor12px">6</span>位到 <span
															class="redColor12px">32</span>位之间！</span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="25" align="right">
								<span class="orang12b">*</span> 所属银行：
							</td>
							<td>
								<div class="select">
									<div>
										<html:select property="bankInfoId" alt="所属银行">
											<%
											if ("A".equals(user.getAccountType())) {
											%>
											<ad:agileOptions typeid="BANK_INFO" dummyLabel="请选择" />
											<%
											} else if ("B".equals(user.getAccountType())) {
											%>
											<ad:agileOptions typeid="ENTERPRISE_BANK_INFO"
												dummyLabel="请选择" />
											<%
											}
											%>
										</html:select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								<span class="orang12b">*</span> 开户行省份：
								<input type="hidden" name="cardType" value="1" />
							</td>
							<td>
								<div class="select">
									<div>
										<html:select property="provSeq" onchange="update()"
											alt="开户行省份">
											<html:options collection="province" property="cityId"
												labelProperty="cityName" />
										</html:select>
									</div>
								</div>
							</td>
						</tr>
						<!-- 开户行城市 -->
						<tr>
							<td align="right" height="25">
								<span class="orang12b">*</span> 开户行城市：
							</td>
							<td>
								<div class="select">
									<div>
										<html:select property="citySeq" alt="开户行城市">
											<html:options collection="city" property="cityId"
												labelProperty="cityName" />
										</html:select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								<span class="orang12b">*</span> 开户行：
							</td>
							<td>
								<label>
									<input type="text" name="bankName" alt="开户行" maxlength="80"
										size="30" class="inputStyle" />
								</label>
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								<span class="orang12b">*</span> 商务联系人：
							</td>
							<td>
								<label>
									<input type="text" name="linkMan" alt="商务联系人" maxlength="80"
										size="30" class="inputStyle" />
								</label>
							</td>
						</tr>

						<tr>
							<td align="right" height="25">
								<span class="orang12b">*</span> 商务联系电话：
							</td>
							<td>
								<label>
									<input type="text" name="linkTel" alt="商务联系电话" maxlength="80"
										size="30" class="inputStyle" />
								</label>
							</td>
						</tr>

					</table>
					<div class="button_Frame">
						<input type="button" name="sure" value="确 定" class="button_style"
							onclick="submitProcess();" />
						<input type="button" name="return" value="返 回"
							class="button_style"
							onclick="loading('<%=path%>/route.do?modual=space$account');" />
					</div>
				</div>
			</div>
		</div>
	</div>
</html:form>
